package com.agileai.pm.module.proc.handler;


import com.agileai.domain.DataParam;
import com.agileai.hotweb.controller.core.StandardEditHandler;
import com.agileai.hotweb.renders.LocalRenderer;
import com.agileai.hotweb.renders.RedirectRenderer;
import com.agileai.hotweb.renders.ViewRenderer;

public class ProcWeeklyManageSetDisplayCountHandler
        extends StandardEditHandler {
    public ProcWeeklyManageSetDisplayCountHandler() {
        super();
    }
    public ViewRenderer prepareDisplay(DataParam param) {
		String operaType = param.get(OperaType.KEY);
		String num = param.getString("num");
		int limitNum = Integer.parseInt(num);
		this.setAttribute("DISPLAY_COUNT",limitNum );
		this.setOperaType(operaType);
		processPageAttributes(param);
		return new LocalRenderer(getPage());
	}
    protected void processPageAttributes(DataParam param) {}
    
    public ViewRenderer doSaveAction(DataParam param){
		return new RedirectRenderer(getHandlerURL(listHandlerClass));
	}
   
}
